Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to svelte 5 #12364

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Update to svelte 5 #12364

wants to merge 3 commits into from

Conversation

jdtjenkins
Copy link
Contributor

Changes

Updates the @astrojs/svelte integration to use Svelte 5 by default. This change is necessary because the Svelte 5 Vite plugin only supports Svelte 5 and has dropped all v4 support. So it'd be really messy supporting both versions in one integration. We'd be better off cutting a new major and only supporting v5 on the new major and beyond.

Removes all Svelte 4 code and deps from the integration.

Fixes or updates all the tests to use Svelte 5 components.

Testing

All the unit tests have been updated to use the newer Svelte 5 syntax, all the fixtures have also been updated to use Svelte 5 as a dependency. Running the fixtures shows the integration works and loads up Svelte 5 components.

Docs

I... Should add some docs for this yes. This will be a pretty big change(? or a reasonably sized one I guess) as we'll now stick Svelte 4 on a certain major of the package, and carrying on will only be Svelte 5 support.

Copy link

changeset-bot bot commented Nov 2, 2024

⚠️ No Changeset found

Latest commit: 1bab62d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added pkg: svelte Related to Svelte (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant